package com.waitingsnow.common.share.netEaseMicroblog.events
{
	import com.waitingsnow.common.share.netEaseMicroblog.NEMicroblog;
	import com.waitingsnow.common.share.netEaseMicroblog.events.*;
	
	/**
	 * @private 
	 * 
	 * <p>抛出事件.</p> 
	 */	
	
	public function dispatch (target:NEMicroblog, type:String, content:Object, is_error:Boolean = false):void
	{
        if (!content) content = "";
		if (is_error)
		{
			target.dispatchEvent (new NEMicroblogErrorEvent (type, content.toString ()));
		}
		else
		{
			
			target.dispatchEvent (new NEMicroblogEvent (type, content, false, false));
		}
	}
}